using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;

public class USkillToolTip : UIToolTip
{
    [SerializeField] private TextMeshProUGUI skillText;
    [SerializeField] private TextMeshProUGUI skillName;
    [SerializeField] private TextMeshProUGUI skillCost;
    [SerializeField] private int defaultFontSize;
    public void ShowToolTip(string _text, string _name,int _price)
    {

        AdjustPosition();
        skillText.text = _text;
        skillName.text = _name;
        skillCost.text = "Cost: " + _price;
        AdjustFontSize(skillName);
        gameObject.SetActive(true);
    }
    public void HideToolTip()
    {
        skillName.fontSize = defaultFontSize;
        gameObject.SetActive(false);
    }

}
